package com.easypan.mapper;

import com.easypan.entity.dto.UserSpaceDto;
import com.easypan.entity.po.UserInfo;
import com.easypan.entity.query.UserInfoQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper<T, P> extends BaseMapper<T, P>{


     int selectByEmail(String email);

    int selectByname(String nickName);

    void insetuser(UserInfo userInfo);

    UserInfo selectByzhmm(String email, String password);

    void updatatpassword(String encryptedString, String email);

    void qqtxqk(UserInfo userInfo);

    UserInfo selectByuserid(int userid);

    Long selectUseSpace(int userId);

    void updatauser(int userId, UserSpaceDto userSpaceDto);

    List<UserInfo> page(@Param("userId")int userId, @Param("filePid")String filePid);

    Integer selectCount();


    List<UserInfo> selectList(@Param("query")UserInfoQuery userInfoQuery);
}
